package nl.boelen.game.level;

import nl.boelen.game.client.Client;
import nl.boelen.game.options.Option;
import nl.boelen.game.utils.Utils;

public class Map {
    private int CENTER = Option.WORLDSIZE / 2;
    private String mapName;
    private Client client;

    public Map(String mapName, Client client) {
        this.client = client;
        this.mapName = mapName;
    }

    public String getMapName() {
        return mapName;
    }

    public void setMapName(String mapName) {
        this.mapName = mapName;
    }

    public void getChunk(int xPos, int yPos) {
        int xChunk = (xPos / Option.CHUNKSIZE) + CENTER;
        int yChunk = (yPos / Option.CHUNKSIZE) + CENTER;
        Utils.LOG(xChunk + " " + yChunk);
        
        Chunk c = new Chunk(xChunk, yChunk);
    }
}
